#include "wxsquickpropspanel.h"
#include "wxspropertycontainer.h"

wxsQuickPropsPanel::wxsQuickPropsPanel( wxsPropertyContainer* PC ):
  wxPanel(),
  Container( PC ) {
}

wxsQuickPropsPanel::wxsQuickPropsPanel(
  wxWindow* parent,
  wxsPropertyContainer* PC,
  wxWindowID id,
  const wxPoint& pos,
  const wxSize& size,
  long style,
  const wxString& name ):
  wxPanel( parent, id, pos, size, style, name ),
  Container( PC ) {
}

wxsQuickPropsPanel::~wxsQuickPropsPanel() {
  if( Container ) {
    Container->CurrentQP = 0;
    Container = 0;
  }
}

void wxsQuickPropsPanel::NotifyChange() {
  if( Container ) {
    Container->NotifyPropertyChangeFromQuickProps();
  }
}
